package com.OjSystem.friend.controller.question;

import com.OjSystem.friend.domain.exam.DTO.QuestionListDTO;
import com.OjSystem.friend.domain.exam.VO.QuestionListVO;
import com.OjSystem.friend.domain.exam.VO.QuestionVO;
import com.OjSystem.friend.service.quesiton.IQuestionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/question")
@RestController
public class QuestionController {

    @Autowired
    private IQuestionService questionService;


    /**
     * 获取题目列表
     * @param questionListDTO
     * @return
     */
    @RequestMapping("/semiLogin/getQuestionList")
    public QuestionListVO<QuestionVO> getQuestionList(QuestionListDTO questionListDTO){
        return questionService.getQuestionList(questionListDTO);
    }
}
